<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" th:attr="content=${keywords}" />
<meta name="Description" th:attr="content=${description}" />
<meta name="Description" th:attr="content=${description}" />
{if $auto_redirect}
<meta http-equiv="refresh" content="3;URL=" />
{/if}
<!-- TemplateBeginEditable name="doctitle" -->
<title></title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link th:href="${ecs_css_path}" rel="stylesheet" type="text/css" />

<!-- auto replace start-->
<script type="text/javascript" src="/static/js/common.js"></script>
<!-- auto replace end-->
</head>
<body>
<div th:replace="common/tpls/page_header_tpl::page_header"></div>


  <div th:replace="common/tpls/ur_here_tpl::ur_here"></div>

<div class="block clearfix">
  <!--left start-->
  <div class="AreaL">
    <!-- TemplateBeginEditable name="左边区域" -->
  
    <div th:replace="common/tpls/category_tree_tpl::category_tree"></div>
   
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="左边广告区域（宽200px）" -->
    <!-- TemplateEndEditable -->
    <!--AD end-->
    <div th:replace="common/tpls/history_tpl::history"></div>
  </div>
  <!--left end-->
  <!--right start-->
  <div class="AreaR">
  <div th:replace="common/tpls/message_list_tpl::message_list"></div>
  <div th:replace="common/tpls/pages_tpl::pages"></div>
  <div class="blank5"></div>
    <div class="box">
     <div class="box_1">
      <h3><span></span></h3>
      <div class="boxCenterList">
          <form action="message.php" method="post" name="formMsg" onSubmit="return submitMsgBoard(this)">
            <table width="100%" border="0" cellpadding="3">
              <tr>
                <td align="right"></td>
                <td>
                <!--{if $smarty.session.user_name}-->
                <font class="f4_b"></font><label for="anonymous" style="margin-left:8px;"><input type="checkbox" name="anonymous" value="1" id="anonymous" /></label>
                <!--{else}-->
               
                <!--{/if}-->
                </td>
              </tr>
              <tr>
                <td align="right"></td>
                <td><input name="user_email" type="text" class="inputBg" size="20" value="" /></td>
              </tr>
              <tr>
                <td align="right"></td>
                <td><input name="msg_type" type="radio" value="0" checked="checked" />
                  
                  <input type="radio" name="msg_type" value="1" />
                  
                  <input type="radio" name="msg_type" value="2" />
                  
                  <input type="radio" name="msg_type" value="3" />
                  
                  <input type="radio" name="msg_type" value="4" />
                   </td>
              </tr>
              <tr>
                <td align="right"></td>
                <td><input name="msg_title" type="text" class="inputBg" size="30" /></td>
              </tr>
            <!-- 判断是否启用验证码{if $enabled_mes_captcha} -->
              <tr>
                <td align="right"></td>
                <td><input type="text" size="8" name="captcha"  class="inputBg" />
                <img src="captcha.php?" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?'+Math.random()" /> </td>
              </tr>
            <!--{/if}-->
              <tr>
                <td align="right" valign="top"></td>
                <td><textarea name="msg_content" cols="50" rows="4" wrap="virtual" style="border:1px solid #ccc;"></textarea></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="hidden" name="act" value="act_add_message" />
                  <input type="submit" value="" class="bnt_blue_1" />
                </td>
              </tr>
            </table>
          </form>
        <script type="text/javascript">
        {foreach from=$lang.message_board_js item=item key=key}
        var  = "";
        {/foreach}
        {literal}
        /**
         * 提交留言信息
        */
        function submitMsgBoard(frm)
        {
            var msg = new Object;

             msg.user_email  = frm.elements['user_email'].value;
             msg.msg_title   = frm.elements['msg_title'].value;
             msg.msg_content = frm.elements['msg_content'].value;
             msg.captcha     = frm.elements['captcha'] ? frm.elements['captcha'].value : '';

            var msg_err = '';

            if (msg.user_email.length > 0)
            {
               if (!(Utils.isEmail(msg.user_email)))
               {
                  msg_err += msg_error_email + '\n';
                }
             }
             else
             {
                  msg_err += msg_empty_email + '\n';
             }
            if (msg.msg_title.length == 0)
            {
                msg_err += msg_title_empty + '\n';
            }
            if (frm.elements['captcha'] && msg.captcha.length==0)
            {
                msg_err += msg_captcha_empty + '\n'
            }
            if (msg.msg_content.length == 0)
            {
                msg_err += msg_content_empty + '\n'
            }
            if (msg.msg_title.length > 200)
            {
                msg_err += msg_title_limit + '\n';
            }

            if (msg_err.length > 0)
            {
                alert(msg_err);
                return false;
            }
            else
            {
                return true;
            }
        }
        {/literal}
        </script>
      </div>
     </div>
    </div>
  </div>
  <!--right end-->
</div>

<div th:replace="common/tpls/page_footer_tpl::page_footer"></div>
</body>
</html>
